import request from "@/utils/request";

// 获取字段列表
export function getuserList(data) {
  return request({
    url: "/api/permission/Users/extend",
    method: "get",
    data,
  });
}
// 修改用户
export function editUser(id, data) {
  return request({
    url: `/api/permission/Users/extend/${id}`,
    method: "put",
    data,
  });
}
// 获取用户
export function getUserInfo(id, data) {
  return request({
    url: `/api/permission/Users/${id}`,
    method: "get",
    data,
  });
}

// 导出用户
export function exportUserList(params, data) {
  return request({
    url: `/api/permission/Users/extend/ExportExcel?`+params,
    method: 'get',
    data
  })
}

// 修改用户状态
export function updateEnableMark(id, enabledMark) {
  return request({
    url: `/api/permission/Users/extend/updateEnableMark/${id}/${enabledMark}`,
    method: 'put',
  })
}
